package com.hongkuncheng.cms.freemaker.article;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hongkuncheng.cms.helper.ArticleHelper;

import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;

@Component
public class GetPageContentsMethod implements TemplateMethodModelEx {

    @Override
    public Object exec(List args) throws TemplateModelException {
        return ArticleHelper.GetPageContents(args.get(0).toString());
    }

}
